<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			function $$(id){
				return document.getElementById(id)
			}
			window.onload=function(){
				var  cnv=$$("canvas")
				var cxt=cnv.getContext("2d")
				
				cxt.fillStyle="hotpink"
				cxt.translate(30,30)
				cxt.fillRect(0,0,100,50)
				
				cxt.fillStyle="lightskyblue"
				cxt.translate(60,60)
				cxt.fillRect(0,0,100,50)
			}
		</script>
	</head>
	<body>
		<canvas id="canvas"width="200"height="150"style="border: 1px dashed;"></canvas>
	</body>
</html>
